<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .col-label {
                width: 110px;
                text-align: right;
            }

            .col-label2 {
                padding-left: 80px;
                width: 110px;
                text-align: right;
            }

            .col-input {
                width: 120px;
            }

            .col-qry1 {
                width: 40%;
            }
        </style>
        <script type="text/javascript" src="#{request.contextPath}/UI/support/pub.js"/>
        <script type="text/javascript">
            function openDetl(obj) {
                var guid = obj.parentNode.parentNode.children[0].innerHTML;
                var sfeature = "dialogwidth:850px; dialogheight:550px;center:yes;help:yes;resizable:no;scroll:yes;status:no";
                var arg = new Object();
                arg.doType = "select";
                arg.guid = guid;
                var rtn = dialog("common/payVoucherDetl.xhtml?doType=select&amp;guid="+guid, arg, sfeature);
            }
        </script>
    </ui:define>

    <ui:define name="content">
        <div style="margin:5px">
            <p:tabView style="font-weight:normal;font-style:normal">
                <p:tab title="直接支付清算成功处理">
                    <p:growl id="qrymsgs" showDetail="false"/>
                    <div id="qrytable">
                        <h:form id="qryform">
                            <p:menubar>
                                <p:menuitem type="push" value="多笔回写处理" icon="ui-icon ui-icon-gear"
                                            action="#{clearanceProcessAction.onMultipleReback}" update="qrymsgs, qrypdt"
                                            ajax="false"/>
                                <p:menuitem type="push" value="导出记录" icon="ui-icon ui-icon-gear" update="msgs, pdt"/>
                            </p:menubar>
                            <p:ajaxStatus style="height:18px;text-align:center">
                                <f:facet name="start">
                                    <h:graphicImage value="/images/ajaxloadingbar.gif"/>
                                </f:facet>
                                <f:facet name="complete">
                                    <h:outputText value=""/>
                                </f:facet>
                            </p:ajaxStatus>
                            <p:dataTable id="qrypdt" dynamic="true"
                                         value="#{clearanceProcessAction.payvoucherListFortab1}" var="record"
                                         selection="#{clearanceProcessAction.payPayvouchers}"
                                         paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                         paginator="true" rows="15" paginatorPosition="bottom"
                                         rowsPerPageTemplate="100,50,30,15,5"
                                         emptyMessage="数据记录为空...">
                                <p:column selectionMode="multiple"/>
                                <ui:include src="common/payVoucherList.xhtml">
                                    <ui:param name="backBean" value="#{clearanceProcessAction}"/>
                                </ui:include>
                                <p:column headerText="确认成功" style="width:70px;text-align:center">
                                    <p:commandLink style="color:blue;" value="确认成功">
                                    </p:commandLink>
                                </p:column>
                            </p:dataTable>
                        </h:form>
                    </div>
                </p:tab>
                <p:tab title="本日清算回写记录清单">
                    <div id="table">
                        <h:form id="form">
                            <p:dataTable id="pdt" dynamic="true"
                                         value="#{clearanceProcessAction.payvoucherListFortab2}" var="record"
                                         paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                         paginator="true" rows="15" paginatorPosition="bottom"
                                         rowsPerPageTemplate="100,50,30,15,5"
                                         emptyMessage="数据记录为空...">
                                <ui:include src="common/payVoucherList.xhtml">
                                    <ui:param name="backBean" value="#{clearanceProcessAction}"/>
                                </ui:include>
                            </p:dataTable>
                        </h:form>
                    </div>
                </p:tab>
            </p:tabView>
        </div>
    </ui:define>

</ui:composition>